<%@ page import="pojo.Person" %>
<%@ page import="java.util.HashMap" %><%--
  Created by IntelliJ IDEA.
  User: 颜值军长
  Date: 2020/6/23
  Time: 7:12
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
   <%
       Person person = new Person();

       person.setName("YG");

       person.setCitys(new String[]{"北京","上海","深圳"});

       HashMap<String, Object> map = new HashMap<>();
       map.put("key1","value1");
       map.put("key2","value2");

       person.setMap(map);

       request.setAttribute("Person",person);
   %>

   输出人${Person}
</body>
</html>
